<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/20
 * Time: 16:23
 */
namespace app\admin\validate;

use think\Validate;

class OperatorValidate extends Validate
{
    protected $rule = [
        "account|账号" => 'require|unique:operator',
        "password|密码" => "require",
        "status|状态" => "require"
    ];

    protected $scene = [
        'edit' => ['roles','account','status']
    ];
}